package entity

import "time"

type OrderItem struct {
	ID 			int `gorm:"column:id;PRIMARY_KEY"`
	BagCode    	string    `gorm:"column:bag_code"`
	OrderId    	int    `gorm:"column:order_id"`
	ProductId    	int    `gorm:"column:product_id"`
	ProductNum    	int    `gorm:"column:product_num"`
	ProductPrice    	float64    `gorm:"column:product_price"`
	BagPrice    	float64    `gorm:"column:bag_price"`
	BagType    	float64    `gorm:"column:bag_type"`

	CreatedAt    	time.Time    `gorm:"column:created_at"`
}

func (OrderItem) TableName() string {
	return "l_order_item"
}
